import http from "../../utils/http";
const key = {
    // -----------------产品分组----------------
    product_group_add: (data) => http.post("/product_group/add", data), // 产品分组添加
    // app_add: (data) => http.post("/system.android.app_add", data, null, {
    //     headers: {
    //         'Content-Type': 'multipart/form-data'
    //     }
    // }), // 版本发布
    product_group_list: (data) => http.get("/product_group/list", data), // 产品分组列表
    product_group_edit: (data) => http.put("/product_group/edit", data), // 产品分组编辑
    product_group_delete: (data) => http.delete("/product_group/delete", data), // 产品分组删除
    // -----------------产品管理----------------
    product_add: (data) => http.post("/product/add", data), // 产品添加
    product_list: (data) => http.get("/product/list", data), // 产品列表
    product_edit: (data) => http.put("/product/edit", data), // 产品编辑
    product_delete: (data) => http.delete("/product/delete", data), // 产品删除
    product_status: (data) => http.post("/product/change_status", data), // 产品上下架
    product_detail: (data) => http.get("/product/detail", data), // 产品详情

    // -----------------仓库管理----------------
    warehouse_list: (data) => http.get("/warehouse/list", data), // 仓库列表
    warehouse_add: (data) => http.post("/warehouse/add", data), // 仓库添加
    warehouse_edit: (data) => http.put("/warehouse/edit", data), // 仓库编辑
    warehouse_delete: (data) => http.delete("/warehouse/delete", data), // 仓库删除
    warehouse_detail: (data) => http.get("/warehouse/detail", data), // 仓库详情

    //产品入库
    product_in_add: (data) => http.post("/warehouse/product/in_add", data), // 产品入库添加
    product_in_list: (data) => http.get("/warehouse/product/in_list", data), // 产品入库列表
    product_in_create: (data) => http.post("/warehouse/product/in_create", data), // 产品入库
    product_in_delete: (data) => http.delete("/warehouse/product/in_delete", data), // 产品入库删除
    product_in_detail: (data) => http.get("/warehouse/product/in_detail", data), // 产品入库详情
    product_in_record: (data) => http.get("/warehouse/product/in_record", data), // 产品入库记录
    product_in_record_detail: (data) => http.get("/warehouse/product/in_record_detail", data), // 产品入库记录详情

    //库存盘点
    stock_check_add: (data) => http.post("/stock_check/add", data), // 库存盘点添加
    stock_check_list: (data) => http.get("/stock_check/list", data), // 库存盘点列表
    stock_check_edit: (data) => http.put("/stock_check/edit", data), // 库存盘点编辑
    stock_check_change_status: (data) => http.put("/stock_check/change_status", data), // 库存盘点提交
    stock_check_detail: (data) => http.get("/stock_check/detail", data), // 库存盘点详情
    //仓库产品库存列表
    product_stock_list: (data) => http.get("/purchase/product/list", data), // 仓库产品库存列表

    //库存调拨
    stock_transfer_add: (data) => http.post("/stock_transfer/add", data), // 库存调拨添加
    stock_transfer_list: (data) => http.get("/stock_transfer/list", data), // 库存调拨列表
    stock_transfer_edit: (data) => http.put("/stock_transfer/edit", data), // 库存调拨编辑
    stock_transfer_change_status: (data) => http.put("/stock_transfer/change_status", data), // 库存调拨提交
    stock_transfer_detail: (data) => http.get("/stock_transfer/detail", data), // 库存调拨详情

    //产品出库
    warehouse_product_out_add: (data) => http.post("/warehouse_product_out/add", data), // 产品出库添加
    warehouse_product_out_list: (data) => http.get("/warehouse_product_out/list", data), // 产品出库列表
    warehouse_product_out_out: (data) => http.post("/warehouse_product_out/out", data), // 产品出库
    warehouse_product_out_change_status: (data) => http.put("/warehouse_product_out/change_status", data), // 产品出库提交
    warehouse_product_out_detail: (data) => http.get("/warehouse_product_out/detail", data), // 产品出库详情

    //出库记录
    warehouse_product_out_record_list: (data) => http.get("/warehouse_product_out_record/list", data), // 出库记录列表
    warehouse_product_out_record_detail: (data) => http.get("/warehouse_product_out_record/detail", data), // 出库记录详情
};

export default key;
